	<link href="__PUBLIC__/admin/css/layout.css" rel="stylesheet" type="text/css" />
	<link href="__PUBLIC__/js/pagination/pagination.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
<link href="../Public/css/purview.css" rel="stylesheet" type="text/css" />
<style>
/* 弹窗 */ 
#tbox{POSITION:absolute;TOP:0;LEFT:0;TEXT-ALIGN:left;Z-INDEX:9999999;WIDTH:100%;}
.tb_background{FLOAT:LEFT;Z-INDEX:1000;POSITION:ABSOLUTE;TOP:0PX;LEFT:0PX;WIDTH:100%;HEIGHT:100%;FILTER:ALPHA(OPACITY=80);_MOZ-OPACITY:0.8;OPACITY:0.8;BACKGROUND-COLOR:#999;}
#tbox .tb_popup{BACKGROUND:URL(__PUBLIC__/themes/blue/images/b.png);MARGIN:0 AUTO;}
#tbox .tb_loading{PADDING:5PX 20PX;TEXT-ALIGN:CENTER;BACKGROUND:URL(__PUBLIC__/themes/blue/images/BIGLOADING.GIF) NO REPEAT;}
#tbox .tb_body{POSITION:RELATIVE;BACKGROUND:#FFF;BORDER:1PX SOLID #666;MARGIN:8px;min-height:178px;/*高度最小值设置为：178px*/ height:auto !important;/*兼容FF,IE7也支持 !important标签*/ height:178px;/*兼容ie6*/ overflow:visible;padding-bottom:15px;}
#tbox .tb_header{padding:0 5px;LINE-HEIGHT:30px;HEIGHT:30px;background-color:#f6f6f6;background-image:url(__PUBLIC__/themes/blue/images/pop_tit.gif);margin-bottom:10px;background-repeat:repeat-x;background-position:0px 0px;overflow:hidden;}
#tbox .tb_title{FONT-WEIGHT:bold;FONT-SIZE:14px;CURSOR:move;COLOR:#333 }
#tbox .tb_content{BACKGROUND:#FFF;PADDING:0PX;WIDTH:100%;}
#tbox .tab{margin:0 20px;}
#tbox .tb_alert_info{text-align:center;padding:35px 0;font-size:14px;color:#333;width:400px;}
#tbox .reward_box{width:360px;padding:20px;color:#666;}
#tbox .tb_alert_info img{padding-right:10px;}
#tbox .tb_button_list{text-align:center;padding-top:15px;clear:both;}
#tbox .tb_button_list #tb_button_ok{line-height:28px;height:28px;border:1px solid #999;white-space:nowrap;vertical-align:middle;cursor:pointer;font-size:12px;padding:0 15px;*padding:0 5px;
font-weight:bold;background-position:0px -193px;}
#tbox .tb_button_list #tb_button_no, #best_only, #best_more{line-height:28px;height:28px;border:1px solid #999;white-space:nowrap;vertical-align:middle;cursor:pointer;font-size:12px;padding:0 15px;*padding:0 5px;background-position:0px -193px;}
#tbox .tb_close{PADDING:8px 5px 0 0;FLOAT:right;LINE-HEIGHT:30px;}
#tbox .tb_close A{DISPLAY:block;BACKGROUND:url(__PUBLIC__/themes/blue/images/close.gif);OVERFLOW:hidden;WIDTH:16px;TEXT-INDENT:-999em;HEIGHT:16px }
#tbox .tb_close A:hover{}
#tbox textarea{height:100px;}
.atention_box{margin:0 20px;}
.supplement_box{font-size:12px;text-align:left;overflow:hidden;width:400px;}
.supplement_box dl{margin:0px 20px;clear:both;padding:0 0 15px 0;}
.supplement_box dt{font-weight:bold;color:#333;font-size:12px;line-height:25px;}
.participation_box{font-size:12px;text-align:left;width:400px;}
.participation_box dl{margin-top:0px;margin-right:20px;margin-bottom:0px;margin-left:20px;clear:both;padding-top:15px;padding-right:0px;padding-bottom:0px;padding-left:0px;}
.participation_box dt{font-weight:bold;color:#333;font-size:12px;line-height:25px;}
.participation_box dd{margin:0px;padding:0px;line-height:140%;}
.optimal_box{font-size:12px;text-align:left;width:400px;}
.optimal_box dl{margin-top:0px;margin-right:20px;margin-bottom:0px;margin-left:20px;clear:both;padding-top:15px;padding-right:0px;padding-bottom:0px;padding-left:0px;}
.optimal_box dt{color:#333;font-size:12px;line-height:25px;}
.optimal_box dd{margin:0px;padding:0px;line-height:140%;font-size:14px;background-image:url(__PUBLIC__/themes/blue/images/ico_cite.gif);background-repeat:no-repeat;background-position:0px 0px;}
.cont_C dt{color:#333333;font-size:12px;font-weight:bold;line-height:25px;}
.cont_C dd{line-height:140%;margin:0;padding:0;}
</style>
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.4-and-jquery-ui-core-1.7.2.js" ></script>
<script type="text/javascript" src="__PUBLIC__/js/jquery-ui-1.7.2/dragable.js" ></script>
<script type="text/javascript" src="__PUBLIC__/js/thickbox/jquery.mousewheel.min.js" charset="utf-8"></script>
<script type="text/javascript" src="__PUBLIC__/language/{$lang}/lang.js" ></script>
<script> var LANGUAGE_NAME = '{$lang}'; </script>
<script type="text/javascript">
	/* 全局JS常量 */
	var THEME = "__THEME__";
	var APP    = "__APP__";
	var URL    = "__URL__";
	var JS_DIR     = "__PUBLIC__/js";
	var PUBLIC = "../Public";
	var SITE_URL = "<php>echo SITE_URL</php>";
	var EDITER_BASE = JS_DIR+"/kissy/";
	var EDITER_UPLOAD = "{:U('home/Attach/index')}";
</script>
<script type="text/javascript" src="__PUBLIC__/js/tbox/tbox.js" ></script>
<div id="container">
<div class="tab">
	<ul>
		<li><a class="on" href="{:U('portal/Channel/admin')}">频道管理</a></li>
		<li><a href="{:U('portal/Channel/add')}">增加频道</a></li>
		<!--<li><a href="{:U('portal/Purview/index')}">权限管理</a></li> -->  
        <li><a href="{:U('portal/Channel/temp')}">模板管理</a></li>             
	</ul>
</div>

	<table border="0" cellpadding="0" cellspacing="0" width="100%" >
	<tr><td valign="top">
	<table class="tableborder" border="0" cellpadding="0" cellspacing="0" width="100%">
    	<tr>
        	<th class="header" colspan="10">频道管理</th>
        </tr>
        <tr class="label cell">
            <th width="14%"><a title="按频道名称" href="{:U('portal/Channel/admin',array('p'=>$_GET[p],'order'=>'title','sort'=>$sort,'tagid'=>$_GET[tagid]))}">频道名称</a></th>
            <th width="20%" >频道标签</th>
            <th width="28%" >管理员</th>
            <th width="8%" ><a title="按状态" href="{:U('portal/Channel/admin',array('p'=>$_GET[p],'order'=>'status','sort'=>$sort,'tagid'=>$_GET[tagid]))}">状态</a></th>
            <th width="29%">操作</th>
        </tr> <volist name='list' id='vo'>
               <tr class="cell" height="25">
            	<td><a href="{:U('portal/Page/index','channelId='.$vo[id])}" target="_blank">{$vo.title}</a></td>
                <td>{$vo.tags}</td>
                <td><a href="#" title="点击名字删除管理员">{$vo.manager|getManagerName=$vo[id]}</a></td>
                <td>{$vo.status|getStatusName}</td>
                <td><a href="{:U('portal/Channel/edit','id='.$vo[id])}">编辑</a> | <a href="javascript:void(0)" onclick="delChannel({$vo.id});return false;">删除</a> | <a href="javascript:void(0)" onclick="admin({$vo.id})">增加专题管理员</a></td>
            </tr>
          </volist>
    </table>
	</td>
	
	
	<td width="200" align="right" valign="top">
	<div class="channel_tag">
		<h3>频道标签</h3>
		<div class="chl_tags">
		<php>if(empty($_GET['tagid'])){</php>
		  全部
		<php>}else{</php>
		   <a href="{:U('portal/Channel/admin')}">全部</a>
		<php>}</php>
		
		<volist name='taglist' id='vv'>
		
		<php>if($_GET['tagid']==$vv['tagid']){</php>
		   {$vv.tagname}({$vv.tagcount})
		<php>}else{</php>
		   <a href="{:U('portal/Channel/admin',array('tagid'=>$vv[tagid]))}">{$vv.tagname}({$vv.tagcount})</a>	
		<php>}</php>
					
		</volist>
		</div>
	</div>
	</td></tr></table>
  <p>{$page}</p>

</div>
<script type="text/javascript">
function delChannel(id){
	if(confirm("确认删除？")){
		var url = "{:U('portal/Channel/doDel')}&id="+id;
		window.location.href = url;
	}	
}
function admin(channelId){
   var url = "{:U('portal/Channel/addAdmin')}&channelId="+channelId;
   $.tbox.popup(url,'增加专题管理员');
}
function delAdmin(channelId,uid){
   if(confirm('确定要删除该专题管理员吗？')){
       window.location.href = "{:U('portal/Channel/delAdmin')}&channelId="+channelId+"&uid="+uid;
   }
}
</script>